from selenium.webdriver.common.by import By

class MailListElement():

    mail_list_button = (By.XPATH, "//span[text()='通讯录']")
    add_button = (By.XPATH, '//i[@class="member_colLeft_top_addBtn"]')
    add_org_button = (By.XPATH, "//a[text()='添加部门']")
    org_name_input_box = (By.XPATH, "//input[@name='name']")
    choies_parent_org_down_box = (By.XPATH, "//span[text()='选择所属部门']/..")
    choies_parent_org = (By.XPATH, "//div[starts-with(@class, 'qui_dropdownMenu')]//a[text()='{}']")

    confirm_button = (By.XPATH, "//a[text()='确定']")
    cancel_button = (By.XPATH, "//a[text()='取消']")

    parent_org_alrt = (By.XPATH, "//div[@id='js_tips']")

    org_ele = (By.XPATH, "//a[@tabindex='-1']")